﻿using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using Eneta.Portal.Common;

namespace Eneta.Portal.Companies.WebParts
{
    [Guid("7408c460-2eee-4841-8df3-3d2cb636846b")]
    public class IOHeader : IOAllProductsDropDown
    {
        protected override void CreateChildControls()
        {
            try
            {
                var control = Page.LoadControl("~/_controltemplates/IOHeaderControl.ascx");
                Controls.Add(control);
            }
            catch(Exception ex)
            {
                Logger.LogWarning("CreateChildControls(): Exception when loading IOHeaderControl", GetType().ToString());
                Logger.LogException(ex);
            }
        }

        public override void RenderBeginTag(HtmlTextWriter writer)
        {
            return;
        }

        public override void RenderEndTag(HtmlTextWriter writer)
        {
            return;
        }
    }
}
